<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询</title>
    <script src="/static/jquery-1.11.3.js"></script>
    <script>
        $(function () {
            var $t = $('#t')
            $.get('/chaxun',function (data) {
                data.forEach(function (list) {
                    $t.append('<tr><td>'+list.id+'</td><td>'+list.username+'</td><td>'+list.password+'</td><td>'+list.age+'</td><td><a href="/denglu/xiugai.html?id='+list.id+'">编辑</a><a href="/shachu?id='+list.id+'">删除</a></td></tr>')
                })
            })
        })
    </script>
</head>
<body>
<a href="/denglu/tianjia.html">添加</a>
<table border="1" cellspacing="0" cellpadding="0" width="80%" style="text-align: center" id="t">
    <tr>
        <th>编号</th>
        <th>账号</th>
        <th>密码</th>
        <th>年龄</th>
        <th>操作</th>
    </tr>
</table>
</body>
</html>